package com.ztsoft.user.mapper.dynamic;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ztsoft.user.pojo.entity.dynamic.DynamicTable;
import com.ztsoft.user.pojo.vo.dynamic.DynamicSqlVo;
import com.ztsoft.user.pojo.vo.dynamic.DynamicTableVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface DynamicTableMapper extends BaseMapper<DynamicTable> {

    DynamicTableVo listMapByTableCode(String tableCode);

    List<Map> queryDataList(String sql);

    int queryDataCount(String sqlCount);

    List<String> getAllTableCode();

    List<Map<String, Object>> getDataList(DynamicSqlVo dynamicSqlVo);

    int getDataListCount(DynamicSqlVo dynamicSqlVo);
}
